package com.example.demo.design.memo;

/**
 * @Author: liull
 * @Description:对于备忘录类Memento而言，它通常提供了与原发器相对应的属性（可以是全部，也可以是部 分）用于存储原发器的状态，
 * @Date: Created in 16:48 2021/4/2
 * @Modified By:
 */
class Memento {
    private String state;

    public Memento(Originator originator) {
        this.state = originator.getState();
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }
}
